package com.lzh.runke.core.task;

import org.springframework.beans.factory.annotation.Value;

public abstract class AbstractTask {

    public final static String TASK_THREAD_GROUP = "TASK_THREAD_GROUP";

    @Value("${rkinf.core.taskEnabled:true}")
    public Boolean enableTask;

    protected void setThreadName(Thread thread) {
        thread.setName(TASK_THREAD_GROUP);
    }
}
